home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
howmuc10.zip
/
HOWMUCH.DOC
next >
Wrap
Text File
|
1991-11-15
|
7KB
|
184 lines
HOWMUCH
Copyright 1991 by Chuck Steenburgh
HOWMUCH Version 1.0 will report the amount of space occu-
pied by a group of files, both via a screen report and via
the DOS errorlevel.
Usage: HOWMUCH [d:][\path\]filespec [/SK | /SM] [/C] [/H]
d: optional drive specifier
\path\ optional directory path
filespec files whose sizes are to be totalled
wildcards are permitted
/SK report space in kilobytes
/SM report space in megabytes
/C center screen output on current line
/H display brief syntax help
Examples:
HOWMUCH *.* displays the space taken by all files
in the current directory in bytes.
HOWMUCH c:\*.* /sk displays the space taken by all files
in the root directory of drive C:, in
kilobytes.
HOWMUCH a:\*.com /sm displays the space taken by all files
with the extension .COM in the root
directory of drive A:, in megabytes.
HOWMUCH FILES.* displays the space taken by all files
with filename FILES (any extension)
in the current directory.
The default is to display space taken in bytes. The error-
level will also be set to reflect the amount of space taken.
The errorlevel is ALWAYS reported in 10k (10,240 bytes) incre-
ments. If more than 2,590,720 bytes (2530 kbytes or 2.47 meg)
is taken, the errrorlevel is set to 253. If 0 bytes are taken
(i.e., no files matching filespec) the errorlevel is set to
255. The errorlevel is set to 254 if the /H help switch is
specified. See the table below for examples:
Space taken (bytes) /K /M Errorlevel
=================== == == ==========
247,316 241.52 0.24 24
Page 1
1,546,764 1,510.51 1.47 151
3,432,124 3,351.68 3.27 253
0 0 0 255
HOWMUCH will total file sizes for ALL files, including
hidden, read only, and system files, as long as they match the
filespec provided on the command line.
DISCLAIMER
The programs described in this documentation are guaran-
teed to absolutely nothing! They have, however, in my exper-
ience performed essentially as described herein. The author
will not be responsible for any loss or damages caused through
the use of these programs.
All trademarks are property of their respective owners.
The programs and documentation are Copyright 1991 by Chuck
Steenburgh. You are encouraged to distribute these programs
provided the following conditions are met:
- all files listed in the file FILES.TXT must be distrib-
uted together in UNMODIFIED form
- you charge no more than a reasonable fee for copying or
subscription, and clearly indicate that payment of such
a fee does NOT grant ownership of the programs.
This program is part of set of utilities known as STEEN-
BURGH'S STUFF (Mildly Useful Utilities). The full set of
utilities includes the following programs:
BATBOX: Simple menu creation/input system
CLK: Displays time on screen
DOSVER: Checks for DOS version currently running
FREEDISK: Checks for available disk space
HOWMUCH: Displays space occupied by a group of files
INPUT: Simple prompt/input system
KLS: Colorful screen-clearing utility
LAUNCHER: File selection/execution system
MUSIC: Plays transcribed sheet music on the PC
RAND: Random number generator
SKIP: Prints blank lines from batch files
SOUNDER: Wide range of noise making options
WAITFOR: Timed pauses
WHENISIT: Date/time telling utility
WRITE: Colorful output anywhere on screen
XD: Create/switch directories at the same time
Payment of the $10 registration fee automatically registers
you for the full set.
You may evaluate these programs for up to 30 days on a free
Page 2
trial basis. After 30 days, you should register your use of
these programs. The registration fee is $10, payable to the
author at the address given below.
Let's be real: I don't plan to make alot of money this way.
Registration does have its advantages:
- I am improving these programs all the time. Registration
will get you IMMEDIATELY a disk with the latest version,
which includes a version of BATBOX with user-selected
menu colors. When Version 2.0 of these utilities is re-
leased, you will also receive that free of charge.
- While I can't promise to include everyone's suggestions
in program updates, you can bet I'll listen to registered
users before any of you scrounges out there.
- You will me feel all warm and fuzzy and appreciated, and
all that good stuff.
- You will also get an evaluation copy of my text-file for-
matting program (used to produce the margins in this doc-
ument).
Send comments/registrations to:
Chuck Steenburgh
304A North Main Street
Lexington, VA 24450
(703)464-5290
CIS 72330,1776 (I haunt the IBMSYS and IBMPRO forums)
Page 3